<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();
globalThis.api.onChildrenWindow((path: string) => {
  console.log('childrenWindow path', path);

  router.push(path);
});
</script>

<template>
  <div class="app_container">
    <router-view></router-view>
  </div>
</template>

<style lang="less">
.app_container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
